package com.atung.service;

import java.util.List;

import com.atung.request.RequestCompanion;
import com.atung.request.RequestPersonalMessage;
import com.atung.response.ResponseCompanion;
import com.atung.response.ResponsePersonalMessage;

public interface PersonalCenterService {

	/**
	 * 个人中心获取用户信息
	 * @param openId
	 * @return
	 */
	ResponsePersonalMessage selectPersonalMsgAndOpenId(String openId)throws Exception ;
	
	/**
	 * 获取同行人员信息
	 * @param openId
	 * @return
	 */
	List<ResponseCompanion>selectCompanionAndOpenId(String openId);
	
	/**
	 * 新增乘车人信息
	 * @param requets
	 * @return
	 */
	Boolean insertCompanion(RequestCompanion request)throws Exception;
	
	/**
	 * 根据主键id修改个人信息
	 * @param requets
	 * @return
	 */
	Boolean updataMessageAndOpenId(RequestPersonalMessage request);
	
	/**
	 * 修改乘车人信息
	 * @param request
	 * @return
	 */
	Boolean updateCompanion(RequestCompanion request);
	/**
	 * 删除乘车人信息
	 * @param requets
	 * @return
	 */
	Boolean delectCompanionAndId(Long id);
	
}
